@extends('layouts.master')

@section('title')
    资讯模块——木投网商城管理后台
@stop

@section('app_css')
    <link href="/resource/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="/resource/css/style.css">
    <link rel="stylesheet" href="/resource/css/dataTables.bootstrap.css">
    <link rel="stylesheet" href="/resource/css/fileinput.min.css">
@stop

@section('app_js')
    <script src="/resource/js/jquery-1.11.3.min.js"></script>
    <script src="/resource/js/bootstrap.min.js"></script>
    <script src="/resource/js/jquery.twbsPagination.js"></script>
    <script src="/resource/js/date.js"></script>
    <script src="/resource/js/vendors/ckeditor/ckeditor.js"></script>
    <script src="/resource/js/vendors/ckeditor/adapters/jquery.js"></script>
    <script src="/resource/js/vendors/main.js"></script>
    <script src="/resource/js/fileinput.min.js"></script>
    <script src="/resource/js/fileinput_locale_zh.js"></script>
@stop


@section('content')
    @include('common.nav')
<div class="container-fluid">
    <div class="row" id="navLeft">
        <div class="col-lg-2">
            <ul class="nav nav-pills nav-stacked">
                <li role="presentation" class="active"><a href="/show_information">资讯</a></li>
            </ul>
        </div>
        <div class="col-lg-10">
            <div class="navbottom">
              <span>您的位置：</span>资讯 > 资讯
            </div>
            <div class="contentNav">
              <ul>
                <li>资讯
                <li class="btn btn-default"><a href="/show_information">列表</a></li>
                <li class="btn btn-default active"><a href="/add_information">新增</a></li>
              </ul>
            </div>
            <hr>
            <div class="contentMember_new">
                {{ Form::open(['url'=>'/add_information' ,'files' => true, 'method' => 'post']) }}
                <table class="table table-hover">
                  <tbody>
                    <tr>
                      <th>文章标题：</th>
                    </tr>
                    <tr class="newBorder_top">
                      <th><input type="text" class="input-small form-control" style="width:260px" name="title"></th>
                    </tr>
                    <tr>
                        <th>作者：</th>
                    </tr>
                    <tr class="newBorder_top">
                        <th>
                            <input type="text" class="input-small form-control" style="width:260px;float:left;" placeholder="" name="author">
                        </th>
                    </tr>
                    <tr>
                        <th>来源：</th>
                    </tr>
                    <tr class="newBorder_top">
                        <th>
                            <input type="text" class="input-small form-control" style="width:260px;float:left;" placeholder="" name="source">
                        </th>
                    </tr>
                    <tr>
                        <th>分类：</th>
                    </tr>
                    <tr class="newBorder_top">
                        <th>
                            <select class="form-control" style="width:260px;float:left;" name="cate">
                                <option value="0">请选择…</option>
                                @foreach($types as $k => $type)
                                <option value="{{ $k }}">{{ $type }}</option>
                                    @endforeach
                            </select>
                        </th>
                    </tr>
                    <tr>
                      <th>关键词：</th>
                    </tr>
                    <tr class="newBorder_top">
                      <th>
                        <input type="text" class="input-small form-control" style="width:260px;float:left;" placeholder="" name="keywords">
                      </th>
                    </tr>
                    <tr>
                      <th>文章缩略图：</th>
                    </tr>
                    <tr class="newBorder_top">
                      <th>
                        <input id="input-id" type="file" class="file" data-preview-file-type="text" name="img">
                      </th>
                    </tr>
                    <tr>
                      <th>文章简介：</th>
                    </tr>
                    <tr class="newBorder_top">
                      <th>
                        <textarea class="form-control" name="introduces"></textarea>
                      </th>
                    </tr>
                    
                    <tr>
                      <th>文章内容：</th>
                    </tr>
                    <tr class="newBorder_top">
                      <th>
                        <textarea id="ckeditor_full" name="content"></textarea>
                      </th>
                    </tr>
                    
                  </tbody>
                </table>
                  <button type="submit" class="btn btn-default">提交</button>
            {{ Form::close() }}
            </div>
        </div>
    </div>
</div>
@stop